<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/9
 * Time: 14:05
 */

namespace app\flower\model;
use think\Model;

class FlowerAddressModel extends Model
{
    /**
     * dottime读取器
     * 在查询的时候将时间戳转换成时间格式
     */
    protected function getDottimeAttr($dottime){
        if(!empty($dottime)){
            return date('Y-m-d H:i:s',$dottime);
        }else{
            return $dottime;
        }
    }
}